package StudyCode.summary.Basic.myint;

import java.util.Scanner;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class TrianglePerimeter {
	public static void main(String[] args) {
		double width1 = 0;
		double width2 = 0;
		double width3 = 0;

		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入三角形第一个边长并回车:");
		width1 = scanner.nextDouble();
		System.out.println("请输入三角形第二个边长并回车:");
		width2 = scanner.nextDouble();
		System.out.println("请输入三角形第三个边长并回车:");
		width3 = scanner.nextDouble();
		double perimeter = width1 + width2 + width3;
		System.out.println("三角形周长是:" + perimeter);
	}
}
